import { AnyAction, Dispatch } from "redux";
import * as ActionTypes from "../action-types";
import { getHotwordsRequest } from '@/api'

export const setHotWord = (data: any[]): AnyAction => ({
  type: ActionTypes.SET_HOTWORD,
  data,
});

export const getHotWord = () => {
    return (dispatch: Dispatch<AnyAction>) => {
        // 请求数据？ 
        dispatch(setHotWord([]))
    }
}